public class AsteriskTriangle {
    public void printOneAsterisk() {
        System.out.println("*");
    }

    public void drawAHorizontalLine(int n) {
        for (int i = 0; i < n; i++) {
            System.out.print("*");
        }
        System.out.println("\n");
    }

    public void drawAVerticalLine (int n) {
        for (int i = 0; i < n; i++) {
            System.out.println("*");
        }
    }

    public void drawARightTriangle(int n) {
        for (int i = 1; i <= n; i++) {
            for (int j = 0; j < i; j++) {
                System.out.print("*");
            }
            System.out.println("\n");
        }
    }
}
